package cn.cvs.dao;

import cn.cvs.pojo.Supplier;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SupplierMapper {
    int add(Supplier supplier) throws Exception;

    List<Supplier> selectList(@Param("supName") String supName, @Param("supCode") String supCode) throws Exception;
    List<Supplier> selectSimpleList() throws Exception;

    int selectCount(@Param("supName") String s, @Param("supCode") String s1) throws Exception;

    int deleteById(@Param("id") Integer integer) throws Exception;

    Supplier selectById(@Param("id") Integer integer) throws Exception;

    int update(Supplier supplier) throws Exception;
}
